import request from '@/utils/request'
export function listAdvertiser(query) {
  return request({
    url: '/mapp/advertiser/list',
    method: 'get',
    params: query
  })
}
export function getAdvertiser(id) {
  return request({
    url: '/mapp/advertiser/' + id,
    method: 'get'
  })
}
export function addAdvertiser(data) {
  return request({
    url: '/mapp/advertiser',
    method: 'post',
    data: data
  })
}
export function updateAdvertiser(data) {
  return request({
    url: '/mapp/advertiser',
    method: 'put',
    data: data
  })
}
export function delAdvertiser(id) {
  return request({
    url: '/mapp/advertiser/' + id,
    method: 'delete'
  })
}
